﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;

namespace Page.Objects
{
    public class LoginPage : AnyPage
    {
        [FindsBy(How=How.Id, Using = "loginform")]
        public IWebElement LoginForm;

        [FindsBy(How=How.Id, Using="username")]
        public IWebElement UserNameField;
        
        [FindsBy(How=How.Name, Using = "password")]
        public IWebElement PasswordField;
        
        [FindsBy(How=How.Name, Using="submit")]
        public IWebElement LoginButton;

        public bool IsOnThisPage()
        {
            return LoginForm.Displayed;
        }

    }
}
